package exception;

import java.net.MalformedURLException;
import java.net.URL;

public class ShiftError {
	
	public URL makeURL(String urlStr) throws MalformedURLException {
		URL url = new URL(urlStr);
		return url;
	}
	
	public static void main(String[] args) {
		
		try {
			ShiftError s = new ShiftError();
			URL url = s.makeURL("http://www.naver.com");
			System.out.println("URL: " + url);
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} finally {
			System.out.println("END");
		}
		
	}
	
}
